Skip to content

progressbar: several more race fixes#62

Closed
jonboulle wants to merge 3 commits intocoreos:masterfrom
jonboulle:master
Closed

progressbar: several more race fixes#62
jonboulle wants to merge 3 commits intocoreos:masterfrom
jonboulle:master

Conversation

@jonboulle
Copy link
Copy Markdown
Contributor

No description provided.

jonboulle added 3 commits May 29, 2016 14:32
By setting the value during the Read call, we potentially miss errors in
the CopyProgressPrinter's main loop, because the copyReader might have
not yet propagated them before it marks itself as done.
There's a race between the time we first check the error slice and when
we check for allDone, since a copyReader might finish and try to report
an error anywhere between this loop. Correct this by checking for errors
again before returning.

This is a stopgap - the real fix here is to refactor this a little more
invasively.
@lucab
Copy link
Copy Markdown
Contributor

lucab commented May 29, 2016

I had a look at this and I don't have any comments. However #63 rewrites most of this, so maybe you can just squash everything in that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants